{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e6.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Sep 2016, 10:14:36
{txt}
{com}. clear 
{txt}
{com}. set more off
{txt}
{com}. use "charity students.dta"
{txt}
{com}. 
. drop if rep == 1
{txt}(69 observations deleted)

{com}. 
. set seed  358395
{txt}
{com}. sem (d <-  t  wl p)(p <-  t  wl)  
{res}{txt}(74 observations with missing values excluded)

Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log likelihood = {res:-75.360086}  
Iteration 1:{space 3}log likelihood = {res:-75.360086}  

Structural equation model{col 49}Number of obs{col 67}= {res}        57
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log likelihood{col 20}= {res}-75.360086

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3921573{col 26}{space 2} .1058978{col 37}{space 1}    3.70{col 46}{space 3}0.000{col 54}{space 4} .1846014{col 67}{space 3} .5997131
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.0924669{col 26}{space 2} .0620642{col 37}{space 1}   -1.49{col 46}{space 3}0.136{col 54}{space 4}-.2141105{col 67}{space 3} .0291767
{txt}{space 10}wl {c |}{col 14}{res}{space 2}  .371205{col 26}{space 2} .0749674{col 37}{space 1}    4.95{col 46}{space 3}0.000{col 54}{space 4} .2242715{col 67}{space 3} .5181384
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2544801{col 26}{space 2} .0661803{col 37}{space 1}    3.85{col 46}{space 3}0.000{col 54}{space 4} .1247692{col 67}{space 3}  .384191
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2098053{col 26}{space 2} .0724832{col 37}{space 1}    2.89{col 46}{space 3}0.004{col 54}{space 4} .0677408{col 67}{space 3} .3518698
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3476751{col 26}{space 2} .0816793{col 37}{space 1}    4.26{col 46}{space 3}0.000{col 54}{space 4} .1875866{col 67}{space 3} .5077637
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .213202{col 26}{space 2}   .07781{col 37}{space 1}    2.74{col 46}{space 3}0.006{col 54}{space 4} .0606972{col 67}{space 3} .3657068
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     var(e.d){c |}{col 14}{res}{space 2} .0470806{col 26}{space 2}  .008819{col 54}{space 4} .0326135{col 67}{space 3} .0679652
{txt}     var(e.p){c |}{col 14}{res}{space 2} .0736535{col 26}{space 2} .0137966{col 54}{space 4}  .051021{col 67}{space 3} .1063257
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
LR test of model vs. saturated: chi2({res:0})   = {res:     0.00}, Prob > chi2 = {res}     .
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}        57{col 27}        .{col 38}-75.36009{col 49}     9{col 58} 168.7202{col 69} 187.1076
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3921573{col 26}{space 2} .1058978{col 37}{space 1}    3.70{col 46}{space 3}0.000{col 54}{space 4} .1846014{col 67}{space 3} .5997131
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.0924669{col 26}{space 2} .0620642{col 37}{space 1}   -1.49{col 46}{space 3}0.136{col 54}{space 4}-.2141105{col 67}{space 3} .0291767
{txt}{space 10}wl {c |}{col 14}{res}{space 2}  .371205{col 26}{space 2} .0749674{col 37}{space 1}    4.95{col 46}{space 3}0.000{col 54}{space 4} .2242715{col 67}{space 3} .5181384
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2098053{col 26}{space 2} .0724832{col 37}{space 1}    2.89{col 46}{space 3}0.004{col 54}{space 4} .0677408{col 67}{space 3} .3518698
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3476751{col 26}{space 2} .0816793{col 37}{space 1}    4.26{col 46}{space 3}0.000{col 54}{space 4} .1875866{col 67}{space 3} .5077637
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2} .0822767{col 26}{space 2} .0360778{col 37}{space 1}    2.28{col 46}{space 3}0.023{col 54}{space 4} .0115655{col 67}{space 3} .1529878
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1363433{col 26}{space 2} .0488012{col 37}{space 1}    2.79{col 46}{space 3}0.005{col 54}{space 4} .0406947{col 67}{space 3}  .231992
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3921573{col 26}{space 2} .1058978{col 37}{space 1}    3.70{col 46}{space 3}0.000{col 54}{space 4} .1846014{col 67}{space 3} .5997131
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.0101902{col 26}{space 2} .0645469{col 37}{space 1}   -0.16{col 46}{space 3}0.875{col 54}{space 4}-.1366998{col 67}{space 3} .1163194
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .5075483{col 26}{space 2} .0727361{col 37}{space 1}    6.98{col 46}{space 3}0.000{col 54}{space 4} .3649881{col 67}{space 3} .6501085
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2098053{col 26}{space 2} .0724832{col 37}{space 1}    2.89{col 46}{space 3}0.004{col 54}{space 4} .0677408{col 67}{space 3} .3518698
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3476751{col 26}{space 2} .0816793{col 37}{space 1}    4.26{col 46}{space 3}0.000{col 54}{space 4} .1875866{col 67}{space 3} .5077637
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <-  t  wl p)(p <-  t  wl)  
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}        57
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .1363433{col 26}{space 2} .0548163{col 37}{space 1}    2.49{col 46}{space 3}0.013{col 54}{space 4} .0289053{col 67}{space 3} .2437813
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .5075483{col 26}{space 2} .0884275{col 37}{space 1}    5.74{col 46}{space 3}0.000{col 54}{space 4} .3342336{col 67}{space 3}  .680863
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}        57
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .13634332{col 27}{space 2}-.0027346{col 38}{space 2} .05481632{col 51}{space 2} .0400433{col 63}{space 1} .2547557{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0520548{col 63}{space 1} .2714961{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2}  .5075483{col 27}{space 2} .0006973{col 38}{space 2} .08842747{col 51}{space 2} .3317089{col 63}{space 1} .6750739{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .3316384{col 63}{space 1} .6750255{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <- wl  t  p)(p <- wl  t )   
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}        57
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0822767{col 26}{space 2} .0355277{col 37}{space 1}    2.32{col 46}{space 3}0.021{col 54}{space 4} .0126437{col 67}{space 3} .1519096
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2}-.0101902{col 26}{space 2} .0707439{col 37}{space 1}   -0.14{col 46}{space 3}0.885{col 54}{space 4}-.1488457{col 67}{space 3} .1284652
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}        57
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .08227666{col 27}{space 2} -.003001{col 38}{space 2} .03552767{col 51}{space 2} .0189397{col 63}{space 1} .1587232{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0273287{col 63}{space 1}  .176926{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2}-.01019022{col 27}{space 2}-.0007275{col 38}{space 2} .07074388{col 51}{space 2}-.1584779{col 63}{space 1} .1218157{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.1609136{col 63}{space 1} .1204592{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** randomization check
. 
. reg t gender interest ideology , robust

{txt}Linear regression                               Number of obs     = {res}       122
                                                {txt}F(3, 118)         =  {res}     1.83
                                                {txt}Prob > F          = {res}    0.1455
                                                {txt}R-squared         = {res}    0.0408
                                                {txt}Root MSE          =    {res} .49786

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}           t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}gender {c |}{col 14}{res}{space 2} .0468805{col 26}{space 2} .0463565{col 37}{space 1}    1.01{col 46}{space 3}0.314{col 54}{space 4}-.0449179{col 67}{space 3} .1386789
{txt}{space 4}interest {c |}{col 14}{res}{space 2} .0729426{col 26}{space 2} .1515151{col 37}{space 1}    0.48{col 46}{space 3}0.631{col 54}{space 4}-.2270985{col 67}{space 3} .3729837
{txt}{space 4}ideology {c |}{col 14}{res}{space 2} .3106419{col 26}{space 2}  .147044{col 37}{space 1}    2.11{col 46}{space 3}0.037{col 54}{space 4} .0194548{col 67}{space 3}  .601829
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2794909{col 26}{space 2} .1284859{col 37}{space 1}    2.18{col 46}{space 3}0.032{col 54}{space 4} .0250539{col 67}{space 3} .5339278
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e6.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Sep 2016, 10:19:04
{txt}{.-}
{smcl}
{txt}{sf}{ul off}